<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,inital-scale=1.0">
    <title>js导入导出</title>
</head>

<body>
    <div id="app">
        <button id="btn">点我展示信息</button>
    </div>

    <script type="module">
        // import { complexMessage as cm } from './showMessage.js'
        // 默认导入
        import message  from './showMessage.js'

        document.getElementById('btn').onclick = function () {
            // complexMessage('我被点击了。。。')
            message.complexMessage('我被点击了。。。')
        }
    </script>

</body>

</html>